package pers.lx.crm.controller.report;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import pers.lx.crm.base.common.pigeon.Result;
import pers.lx.crm.entiy.info.CustomerDO;
import pers.lx.crm.entiy.report.ReportRequestDO;
import pers.lx.crm.service.report.ReportService;

/**
 * Created by lxl on 2017/5/11.
 */
@Controller
@RequestMapping(value = "report")
public class ReportController {

    @Autowired
    private ReportService reportService ;

    @RequestMapping(value = "/list")
    public @ResponseBody
    Result getReports(ReportRequestDO reportRequestDO){
        return reportService.getReport(reportRequestDO) ;
    }


}
